package cc.xuanhaojituan.mongodb.dao;

import cc.xuanhaojituan.mongodb.model.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Component;

/**
 * Created by tuhao on 2017/9/15.
 */
@Component
public interface UserDao extends MongoRepository<User,String> {
    User findByUserName(String userName);
}
